package com.mxdx.edu.enums;

/**
 * Demo枚举
 * 
 * @author WangYuan
 * @date 2016-11-24 11:24
 */
public enum ErrorEnums {

    SYSTEM_ERROR("100000001", "系统错误"),
    MUST_FIELD_IS_NULL("100000002", "必填字段为空"),
    PASSWORD_EMPTY("200000000", "梦想在线提示您:密码不能为空,请重新输入"),
	PASSWORD_AGREE("200000001", "梦想在线提示您:密码不一致,请重新输入"),
	PHONE_NUMBER_EXIST("200000002", "梦想在线提示您:该手机号已被注册,请更换手机号,或者直接登录"),
    PHONE_AND_PASSWORD_FAIL("200000003", "梦想在线提示您:手机号或密码错误,请重试"),
    CHECK_ID_NUMBER_FAIL("200000003", "梦想在线提示您:身份证号不匹配请重新输入"),
    PASSWORD_ERROR("200000006", "梦想在线提示您:原始密码错误,请重新输入"),
    SAVE_ERROR("200000004", "梦想在线提示您:保存失敗"),
    UPDATE_ERROR("200000005", "梦想在线提示您:更新失敗"),
    IMG_CODE_ERROR("200000007", "图片验证码错误"),
    EMAIL_FORMAT_ERROR("200000008", "邮箱格式错误,请输入正确邮箱"),
    DATE_FORMAT_ERROR("200000009", "日期格式错误,请输入正确日期格式"),
    SMS_ALREADY_SEND("200000010","短信发送频繁"),
    SMS_ALREADY_FAILED("200000011","短信发送失败"),
    PHONE_NUMBER_NO_EXIST("200000013", "梦想在线提示您:该手机号尚未被注册,请更换手机号,或者直接登录"),
    SMS_CODE_ERROR("200000014","短信验证码错误"),
    LOGIN_TIME_ERROR("200000015","登录失效，请重新登录"),
	;
	

    private String code;

    private String desc;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    private ErrorEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

}
